package com.user.service;

import java.util.List;
import java.util.Set;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.achievement.entity.Course;
import com.achievement.entity.Subject;
import com.common.util.TablePage;
import com.user.entity.Teacher;
import com.user.entity.dto.TeacherDTO;


public interface ITeacherService {
	public TeacherDTO login(String num,String password);
	public List<Teacher> findAll();
	public Set<Subject> getSubjects(Long id);
	public TablePage<Teacher> findPage(Specification<Teacher> spec,Pageable pageable);
	public void saveOrUpdate(Teacher teacher);
	public void activate(Long id);
	public void revoked(Long id);
	public boolean hasCourse(Long id);
	public List<Teacher> findSelectingBySubj(Long id);
	public boolean isNumExist(Teacher teacher);
	public List<Long> getSubjectsId(Long id);
	public List<Long> getCoursesId(Long id);
	public List<Course> getCourses(Long id);
	public void updatePwd(Long id,String pwd);
	public boolean isPwdTrue(Long id,String pwd);
}
